package structural.decorator.custom.condiment;

import structural.decorator.custom.Coffee;
import structural.decorator.custom.Condiment;

/**
 * 装饰：加冰
 */
public class Ice implements Condiment {
    Coffee coffee;
    int quantity;

    public Ice(Coffee coffee) {
        this.coffee = coffee;
    }
    @Override
    public String getDescription() {
        return coffee.getDescription() + ", 冰";
    }

    @Override
    public double cost() {
        return coffee.cost(); // 加冰不加价
    }

}
